﻿namespace OneCard.Face8280Module.Entities.DTO.Cache
{
    /// <summary>
    /// 用于缓存的人员信息
    /// </summary>
    public class DTOCachePersonnel
    {
        /// <summary>
        ///  人员ID
        ///</summary>
        public int PersonnelID { get; set; }

        /// <summary>
        ///  人员姓名
        ///</summary>
        public string PName { get; set; }

        /// <summary>
        ///  人员编号
        ///</summary>
        public long PCode { get; private set; }

        private string _PCode;
        public string DBPCode
        {
            get
            {
                return _PCode;
            }
            set
            {
                _PCode = value;
                PCode = long.Parse(_PCode);
            }
        }

        /// <summary>
        ///  卡号
        ///</summary>
        public long CardData { get; set; }

        /// <summary>
        /// 个人密码
        /// </summary>
        public string PPassword { get; set; }

        /// <summary>
        /// 部门ID
        /// </summary>
        public int DepartmentID { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DeptName { get; set; }

        /// <summary>
        ///  职务
        ///</summary>
        public string Job { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string MobilePhone { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>
        public string IdentityCard { get; set; }

        /// <summary>
        /// 居住地址
        /// </summary>
        public string Addr { get; set; }


        /// <summary>
        /// 照片ID
        /// </summary>
        public int ImageID { get; set; }

        /// <summary>
        /// 照片大小
        /// </summary>
        public int ImageSize { get; set; }

        /// <summary>
        /// 照片URL
        /// </summary>
        public string ImageURL { get; set; }
        /// <summary>
        /// 照片的MD5
        /// </summary>
        public string ImageMD5 { get; set; }
    }
}